﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Behavior
{
    /// <summary>
    /// 触发器
    /// </summary>
    public class 触发器:System.Windows.Interactivity.TargetedTriggerAction<FrameworkElement>
    {

        protected override void OnAttached()
        {
            base.OnAttached();

            (AssociatedObject as FrameworkElement).Loaded += new RoutedEventHandler(触发器_Loaded);
        }

        void 触发器_Loaded(object sender, RoutedEventArgs e)
        {
             
        }


        protected override void OnDetaching()
        {
            base.OnDetaching();
            (AssociatedObject as FrameworkElement).Loaded  -= new RoutedEventHandler(触发器_Loaded);
        }


        protected override void Invoke(object parameter)
        {
            
        }
    }
}
